Add inclusion state to zwave_js/network_status WS API cmd#65398
Add inclusion state to zwave_js/network_status WS API cmd#65398MartinHjelmare merged 1 commit intohome-assistant:devfrom
Conversation
|
Hey there @home-assistant/z-wave, mind taking a look at this pull request as it has been labeled with an integration ( |
| "suc_node_id": controller.suc_node_id, | ||
| "supports_timers": controller.supports_timers, | ||
| "is_heal_network_active": controller.is_heal_network_active, | ||
| "inclusion_state": controller.inclusion_state, |
There was a problem hiding this comment.
For future readers, the value is an IntEnum:
https://github.com/home-assistant-libs/zwave-js-server-python/blob/47124d7670cfbff7f5edc0f002579efa67dc1eb2/zwave_js_server/const/__init__.py#L269-L277
There was a problem hiding this comment.
should I explicitly use controller.inclusion_state.value to make it more clear?
There was a problem hiding this comment.
I don't think it matters. It will be converted to a number by the json serializer before the websocket consumer gets it. It's the possible values that may be interesting and those aren't shown anyway by the code here.
|
CC @bramkragten |
|
We'd like the frontend, if inclusion/exclusion is in progress, show a cancel action instead of the add/remove action. |
|
Converting to draft until frontend team approves. |
|
One other frontend quirk I noticed when I started looking into this is that we check for the But the property that's being read can only ever be |
|
Frontend PR is merged. |
Proposed change
In order to resolve #61855 the frontend needs to know the current inclusion state when opening the configuration page.
Type of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: